libotutil: Remove redundant import of prctl.h
authorfossdd <fossdd@pwned.life>
Mon, 27 Jan 2025 16:49:39 +0000 (17:49 +0100)
committerfossdd <fossdd@pwned.life>
Mon, 27 Jan 2025 16:49:39 +0000 (17:49 +0100)
sys/prctl.h already provides prctl.h and adding both imports fails on
musl libc:

/usr/include/sys/prctl.h:88:8: error: redefinition of 'struct prctl_mm_map'
   88 | struct prctl_mm_map {
      |        ^~~~~~~~~~~~
In file included from src/libotutil/ot-unix-utils.c:33:
/usr/include/linux/prctl.h:134:8: note: originally defined here
  134 | struct prctl_mm_map {
      |        ^~~~~~~~~~~~

src/libotutil/ot-unix-utils.c

index 551cc8789da22787546da2a97635dfb39236650a..eee3a44f57e38ab459f40bd6768205118de1e2f8 100644 (file)
@@ -30,7 +30,6 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <linux/capability.h>
-#include <linux/prctl.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/prctl.h>